package com.example.demo.order.rocketmq.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName OrderPayConsumer
 * @Description 订单支付消费者
 * @Author MingChang.Wei
 * @Date 2025/8/8
 **/
@Component
@RocketMQMessageListener(topic = "order_pay_topic", consumerGroup = "order_pay_consumer_group")
public class OrderPayConsumer implements RocketMQListener<String> {

    @Override
    public void onMessage(String orderNo) {
        // 处理支付订单消息，比如更新订单状态到支付成功后的其他关联操作
        System.out.println("Received pay order message for orderNo: " + orderNo);
    }
}
